#ifndef __NET_LINK_IO_H__
#define __NET_LINK_IO_H__

#include <net/sock.h>  
#include <linux/socket.h> 
#include "../common/xobject.h"

typedef struct __NETLINK_IO NETLINK_IO;

struct sock * get_sock(NETLINK_IO * io);
NETLINK_IO * netlinkIoBuild(unsigned int __prot,  void (* recv_msg_ptr)(struct sk_buff *));
int get_netlink_payload(struct sk_buff * skb, int * pid, char ** ppData, int * pLength);
int send_net_link_data(struct sock * sock, unsigned int portid, unsigned char * data, int length);

#endif

